home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / MacODBC / ODBC Tools / SampleApp / macdefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-20  |  1.1 KB  |  59 lines  |  [TEXT/MPS ]

  1.  
  2. #ifndef _MACDEFS_
  3. #define _MACDEFS_ 1
  4.  
  5. #include <memory.h>
  6. /*
  7.  *    Redefinitions from Windows.h
  8.  */
  9.  
  10. #include "WindowsUtilities.h"
  11.  
  12. /* 950317 KO    Added for QuikTest                     */
  13.  
  14.  
  15. #define AllocateMemory        NewPtr
  16. #define ReleaseMemory(a)    DisposPtr((Ptr) a)
  17.  
  18.  
  19. /* 950317 KO    Created these defines to facilitate porting to the Macintosh.    */
  20.  
  21. /* CALLBACK needs to be looked up.    */
  22. #define CALLBACK
  23.  
  24. #define int_FAR_PASCAL            pascal int
  25. #define BOOL_FAR_PASCAL            pascal BOOL
  26. #define VOID_FAR_PASCAL            pascal void
  27. #define void_FAR_PASCAL            pascal void
  28. #define LPSTR_FAR_PASCAL        pascal LPSTR
  29. #define char_FAR_PASCAL            pascal char
  30.  
  31. #define BOOL_EXTFUNCDECL_FAR    BOOL
  32. #define VOID_WINAPI                pascal void
  33. #define BOOL_CALLBACK            BOOL CALLBACK
  34. #define void_CALLBACK            void CALLBACK
  35. /* 
  36.  * Redefinitions from portable.h
  37.  */
  38.  
  39. /* EXTFUNCDECL is for an external C Function.    */
  40. #define EXTFUNCDECL
  41.  
  42. /* EXTFUN is for an external _export FAR PASCAL routine in Windows    */
  43. #define EXTFUN pascal
  44. #define INTFUN
  45.  
  46. #define    SYSTEMTIME    struct tm
  47.  
  48. typedef SYSTEMTIME TIMEINFO;
  49. typedef TIMEINFO * lpTIMEINFO;
  50.  
  51. /*
  52.  * Redefinitions from inhouse.h
  53.  */
  54.  
  55. #define CSCONST
  56.  
  57.  
  58. #endif
  59.